package com.lagou.zookeeper.config;

import java.util.Map;

public class RpcServerConfig {

    private String nettyHost;

    private int nettyPort;

    private int delay;

    private String providerSide;

    private String applicationName;

    private Map<String,Class> services;

    public String getNettyHost() {
        return nettyHost;
    }

    private static RpcServerConfig rpcServerConfig;

    public static RpcServerConfig getInstance(){
        if(null == rpcServerConfig){
            rpcServerConfig = new RpcServerConfig();
        }
        return rpcServerConfig;
    }

    private RpcServerConfig(){

    }

    public void setNettyHost(String nettyHost) {
        this.nettyHost = nettyHost;
    }

    public int getNettyPort() {
        return nettyPort;
    }

    public void setNettyPort(int nettyPort) {
        this.nettyPort = nettyPort;
    }

    public int getDelay() {
        return delay;
    }

    public void setDelay(int delay) {
        this.delay = delay;
    }

    public String getProviderSide() {
        return providerSide;
    }

    public void setProviderSide(String providerSide) {
        this.providerSide = providerSide;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public Map<String, Class> getServices() {
        return services;
    }

    public void setServices(Map<String, Class> services) {
        this.services = services;
    }

}
